﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ContactUs.aspx.cs" Inherits="OrganizedIN.ContactUs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">

    <script src="src/js/jquery-1.4.2.min.js" type="text/javascript"></script>

    <link href="<%=ResolveClientUrl("~/CSS/internal_stylesheet.css") %>" rel="stylesheet"
        type="text/css" />

    <script type="text/javascript">
        $(document).ready(function() {
            GenerateCaptcha();
        });

        function GenerateCaptcha() {
            var a = getRandomInt(50, 57);
            b = getRandomInt(65, 90);
            var c = getRandomInt(97, 122); ;
            var d = 70;
            var TestVar = show(a, b, c, d);
            $("[id$=CaptcheCodeTxt]").val(TestVar);
            $("[id$=hdnCaptcha]").val(TestVar);
        }

        function show(a, b, c, d) {

            var a1 = String.fromCharCode(a);
            var b1 = String.fromCharCode(b);
            var c1 = String.fromCharCode(c);
            var d1 = String.fromCharCode(d);

            a = a + 1;
            b = b + 1;
            c = c + 1;
            d = d + 1;
            return a1 + b1 + c1 + d1;
        }

        function CheckValue() {
            if ($("[id$=hdnCaptcha]").val() == $("[id$=txtCaptchaText]").val()) {
                return true;
            }
            else {
                GenerateCaptcha();
                $("[id$=lblError]").css("display", "");
                return false;
            }
        }
    </script>

    <div id="middle_tab_main">
        <div class="middle_tab_content">
            <div id="middle_tab" style="margin-left: 20px">
                <div id="middle_tab_title" align="center">
                    Contact Us</div>
                <div class="middle_tab_content">
                    <div class="documents_table">
                        <table width="97%" border="0" cellspacing="1" cellpadding="5" align="center">
                            <tr bgcolor="#d8e1f3">
                                <td colspan="4" align="left">
                                    <h4>
                                        <strong>Wednesday, February 10, 2011 (today)</strong> ▪ <a href="#"><strong>ReDate</strong></a></h4>
                                </td>
                            </tr>
                            <tr bgcolor="#d8e1f3">
                                <td width="22%" align="right" class="middle_text3">
                                    Your Email Address*
                                </td>
                                <td colspan="3" align="left">
                                    <asp:TextBox ID="txtemail" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr bgcolor="#d8e1f3">
                                <td align="right" class="middle_text3">
                                    Your First Name*
                                </td>
                                <td width="28%" align="left">
                                    <asp:TextBox ID="txtfirstname" runat="server"></asp:TextBox>
                                </td>
                                <td width="12%" align="left">
                                    <a href="#" class="import_button"></a>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr bgcolor="#d8e1f3">
                                <td align="right" class="middle_text3">
                                    Your Last Name*
                                </td>
                                <td colspan="3" align="left">
                                    <asp:TextBox ID="txtlastname" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr bgcolor="#d8e1f3">
                                <td align="right" class="middle_text3">
                                    Subject*
                                </td>
                                <td colspan="3" align="left">
                                    <asp:TextBox ID="txtsubject" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr bgcolor="#d8e1f3">
                                <td align="right" valign="top" class="middle_text3">
                                    Question*
                                </td>
                                <td colspan="3" align="left">
                                    <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Width="350" Height="100"></asp:TextBox>
                                </td>
                            </tr>
                            <tr bgcolor="#d8e1f3">
                                <td align="right" class="middle_text3">
                                    Attach Documents
                                </td>
                                <td colspan="3" align="left">
                                    <asp:FileUpload ID="FileUpload1" runat="server" />
                                </td>
                            </tr>
                            <tr bgcolor="#d8e1f3">
                                <td align="right" class="middle_text3">
                                    &nbsp;
                                </td>
                                <td colspan="3" align="left">
                                    <strong>Please verify your request by entering the text in the image</strong>
                                </td>
                            </tr>
                            <tr bgcolor="#d8e1f3">
                                <td align="right" class="middle_text3">
                                    &nbsp;
                                </td>
                                <td colspan="3" align="left">
                                    <asp:TextBox ID="CaptcheCodeTxt" runat="server" Enabled="false" Style="border-style: none;
                                        border-color: inherit; border-width: medium; background-color: black; color: red;
                                        disable: disable; font-family: 'Curlz MT'; font-size: x-large; font-weight: bold;
                                        font-variant: normal; letter-spacing: 10pt; width: 120px; background-image: url('images/CaptchaCode.jpg');" />&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox
                                            ID="txtCaptchaText" runat="server"></asp:TextBox>&nbsp;&nbsp;<asp:Label ID="lblError"
                                                Style="display: none" ForeColor="Red" runat="server" Text="The code you entered previously did not match ! Please Try Again !"></asp:Label>
                                    <asp:HiddenField ID="hdnCaptcha" runat="server" />
                                </td>
                            </tr>
                            <tr bgcolor="#d8e1f3">
                                <td align="right" class="middle_text3">
                                    &nbsp;
                                </td>
                                <td colspan="3" align="left">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr bgcolor="#d8e1f3">
                                <td align="right" class="middle_text3">
                                    &nbsp;
                                </td>
                                <td colspan="3" align="left">
                                    <asp:Button ID="Button1" runat="server" Text="Submit" OnClientClick="return CheckValue();"
                                        OnClick="Button1_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
